


#import "XMUploadResultModel.h"


@implementation XMUploadResultModel

+ (NSMutableDictionary *)paramDic:(XMUploadResultModel *)model fileType:(NSString *)fileType {
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    [dic setObject:[NSString xm_stringNoNullWith:fileType] forKey:@"fileType"];
    [dic setObject:[NSString xm_stringNoNullWith:model.url] forKey:@"accessUrl"];
    [dic setObject:[NSString xm_stringNoNullWith:model.server] forKey:@"server"];
    if (model.imgW) {
        [dic setObject:@(model.imgW) forKey:@"width"];
    }
    if (model.imgH) {
        [dic setObject:@(model.imgH) forKey:@"height"];
    }
    return dic;
}
@end
